function closebar(p)
% BVQXprogress::closebar  - close shortcut
%
% FORMAT:       closebar(pbar)
%
% Input fields:
%
%       pbar        BVQXprogress object

% Version:  v0.8a
% Build:    9102320
% Date:     Oct-23 2009, 8:01 PM CEST
% Author:   Jochen Weber, SCAN Unit, Columbia University, NYC, NY, USA
% URL/Info: http://wiki.brainvoyager.com/BVQXtools

% argument check
if nargin < 1 || ...
    numel(p) ~= 1
    error( ...
        'BVQXprogress:BadCall', ...
        'Invalid call to closebar.' ...
    );
end

% issue call
BVQXprogress(p, 'close', []);
